package com.younion.common.constants;


public enum RechargeType {
	
	CASH("CASH","现金充值"), COUNT("COUNT","次数充值"), SCORE("SCORE","积分累计");
	private String name;
	private String title;

	private RechargeType(String name,String title) {
		this.name = name;
		this.title = title;
	}

	public String getName() {
		return name;
	}
	
	public String getTitle(){
		return title;
	}

	public static RechargeType valueOfName(String name) {
		for (RechargeType e : RechargeType.values()) {
			if (e.getName().equals(name)) {
				return e;
			}
		}
		return null;
	}

	public static void main(String[] args) {
		System.out.print(RechargeType.valueOfName("*"));
	}
	
}
